package ma.techit.pfe.agence.voyage.bo.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ma.techit.pfe.agence.voyage.bo.interfaces.RequeteBoIn;
import ma.techit.pfe.agence.voyage.dao.implementation.RequeteDao;
import ma.techit.pfe.agence.voyage.model.Requete;

@Service("RequeteBo")
@Transactional

public class RequeteBo implements RequeteBoIn{

	@Autowired
	RequeteDao requeteDao;
	public void save(Requete requete) {
		// TODO Auto-generated method stub
		requeteDao.save(requete);
		
	}

	public void update(Requete requete) {
		// TODO Auto-generated method stub
		requeteDao.update(requete);
	}

	public void delete(Long id) {
		// TODO Auto-generated method stub
		requeteDao.delete(id);
	}

	public Requete findByID(Long id) {
		// TODO Auto-generated method stub
		return requeteDao.findByID(id);
	}

	public List<Requete> findAll() {
		// TODO Auto-generated method stub
		return requeteDao.findAll();
	}

}
